//
//  IDCViewController.m
//  stringsapp
//
//  Created by iD Student on 7/24/13.
//  Copyright (c) 2013 student. All rights reserved.
//

#import "IDCViewController.h"

@interface IDCViewController ()

@end

@implementation IDCViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    welcomeMessage = [[NSString alloc] initWithString:@"Welcome to the game"];
    welcomeLabel.text = welcomeMessage;
    playerScoreText = [[NSMutableString alloc] initWithString:@"score: 0"];
    scoreLabel.text = playerScoreText;
    playerScore = 0;
	
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction) scoreButtonPressed: (id)sender{
    playerScore += 1;
    scoreLabel.text = [NSString stringWithFormat:@"score:%d",playerScore];
}

@end
